<h1>Accesso clienti</h1>

<?php 
	if($_REQUEST[utente]!="registra")
	{
?>
		<div class="halfblock">
		  <h2>Sei registrato?</h2>
		  <form id="form1" name="form1" method="get" action="/ordine">
		    <label>Username
		    <input type="text" name="username" />
		    </label>
		    <br />
		    <label>Password
		    <input type="text" name="password" />
		    </label>
		    <input type="hidden" name="utente" value="utente" />
		    <br />
		    <input type="submit" name="Submit" value="Invia" />
		  </form>
		</div>
<?php 
	}
?>
<div class="halfblock">
    <form id="form1" name="form1" method="get" action="/ordine">
    <h2>Sei un nuovo utente?</h2>
    <div class="label">Nome</div>
    <div class="field">
      <input type="text" name="cliente[nome]" value="<?php echo $_REQUEST[cliente][nome]?>" size="40"/>
    </div>
    <div class="label">Cognome </div>
    <div class="field">
      <input type="text" name="cliente[cognome]" value="<?php echo $_REQUEST[cliente][cognome]?>" size="40"/>
    </div>
    <div class="label">Email </div>
    <div class="field">
      <input type="text" name="cliente[email]" value="<?php echo $_REQUEST[cliente][email]?>" size="40"/>
    </div>
    <div class="label">Indirizzo</div>
    <div class="field">
      <input type="text" name="cliente[indirizzo]" value="<?php echo $_REQUEST[cliente][indirizzo]?>" size="40"/>
    </div>
    <div class="label">Città</div>
    <div class="field">
      <input type="text" name="cliente[citta]" value="<?php echo $_REQUEST[cliente][citta]?>" size="40"/>
    </div>
    <div class="label">CAP</div>
    <div class="field">
      <input type="text" name="cliente[cap]" value="" size="10"/>
      Provincia <? echo $this->negozio->get_menubox_province('cliente[provincia]', 'provincia', $_REQUEST[cliente][provincia]); ?> </div>
    <div class="label">Nazione</div>
    <div class="field">
      <input type="text" name="cliente[nazione]" value="<?php echo $_REQUEST[cliente][nazione]?>" size="40"/>
    </div>
    <div class="label">Telefono</div>
    <div class="field">
      <input type="text" name="cliente[tel]" value="<?php echo $_REQUEST[cliente][tel]?>" size="40"/>
    </div>
    <div class="label">Username</div>
    <div class="field">
      <input type="text" name="cliente[username]" value="<?php echo $_REQUEST[cliente][username]?>" size="40"/>
    </div>
     <div class="label">Password</div>
    <div class="field">
      <input type="text" name="cliente[password]" value="<?php echo $_REQUEST[cliente][password]?>" size="40"/>
    </div>
    <div class="label"></div>
    <div class="field"></div>
    <div class="field">
      <input type="submit" value="Invia" />
      <input type="hidden" name="utente" value="registra" />
    </div>
    </form>
</div>